package torres.map.effect;

import torres.entity.Entity;

/**
 * @author Torres
 * A special kind of AreaEffect that allows an Entity to Level Up if
 * it has sufficient experience.
 */
@SuppressWarnings("serial")
public class LevelUp extends AreaEffect {
	
	/**
	 * Creates a new LevelUp AreaEffect with the default multiplier of 2.
	 */
	public LevelUp() {	
		super(2);
	}
	
	/** 
	 * Applies the Effect to the specified Entity.
	 * @param entity The Entity to which the affect is being applied.
	 */
	public void applyEffect(Entity entity) {
		entity.updateLevel();
	}
	
	/**
	 * Returns the String representation of this LevelUp.
	 * @return The String representation of this LevelUp.
	 */
	public String toString() {
		return "Leveled UP";
	}
}